<?php

namespace App\Observers;

use App\Models\ProductSku;

class ProductSkuObserver
{
    public function saving(ProductSku $sku)
    {
	    $sku->syncAttribute('saving');
	    $sku->pushPriceToProduct();
    }
    
    public function saved(ProductSku $sku)
    {
	   $sku->syncAttribute('saved');
	   $sku->pushPriceToProduct();
    }
    
    public function deleted(ProductSku $sku)
    {
	    $sku->syncAttribute('deleting');
	    $sku->pushPriceToProduct();
    }
}
